export function graphParams(layoutOptions) {
    return {
        defaultNode: {
            size: 32,
            type: 'cusCircle',
            style: {
                fill: '#4579f1',
                stroke: '#4579f1',
                lineWidth: 0,
            },
            labelCfg: {
                position: "bottom",
                offset: 8,
                style: {
                    fill: '#000000',
                    fontSize: 12,
                    background: {
                        fill: '#ffffff',
                        stroke: '#9EC9FF',
                        padding: [2, 2, 2, 2],
                        radius: 2,
                    },
                }
            }
        },
        nodeStateStyles: {
            active: {
                opacity: 1,
                lineWidth: 0,
                shadowBlur: 20,
                "text-shape": {
                    opacity: 1
                }
            },
            highlight: {},
            inactive: {
                opacity: 0.2,
                "text-shape": {
                    opacity: 0.2
                }
            },
            disable: {},
        },
        defaultEdge: {
            type: 'line',
            autoRotate: true,
            style: {
                endArrow: true,
                stroke: '#8facbb',
                lineWidth: 1,
            },
            labelCfg: {
                autoRotate: true,
                style: {
                    fill: '#000000',
                    fontSize: 12,
                },
            },
        },
        edgeStateStyles: {
            active: {
                opacity: 1,
                lineWidth: 2,
                shadowOffsetX: 0,
                shadowOffsetY: 0,
                shadowBlur: 20,
                "text-shape": {
                    opacity: 1
                }
            },
            highlight: {},
            inactive: {
                opacity: 0.2,
                "text-shape": {
                    opacity: 0.2
                }
            },
            disable: {},
        },
        layout: layoutOptions
    }
}
